#import "DetailFragmentFactory.h"
#import "DetailFragmentPlatformView.h"
#import <Flutter/Flutter.h>

@implementation DetailFragmentFactory {
    NSObject<FlutterBinaryMessenger>* _messenger;
}

- (instancetype)initWithMessenger:(NSObject<FlutterBinaryMessenger>*)messenger {
    self = [super init];
    if (self) {
        _messenger = messenger;
    }
    return self;
}

- (NSObject<FlutterPlatformView>*)createWithFrame:(CGRect)frame
                                     viewIdentifier:(int64_t)viewId
                                          arguments:(id _Nullable)args {
    return [[DetailFragmentPlatformView alloc] initWithFrame:frame
                                               viewIdentifier:viewId
                                                    arguments:args
                                              binaryMessenger:_messenger];
}

- (NSObject<FlutterMessageCodec>*)createArgsCodec {
    return [FlutterStandardMessageCodec sharedInstance];
}

@end

